<template>
  <div>
      {{count}}<br/>
        <button @click="jia">点击</button>
  </div>
</template>

<script>
// import { mapState, mapMutations, mapActions, mapGetters } from "vuex";
import { createNamespacedHelpers } from "vuex";
let { mapState, mapActions } = createNamespacedHelpers("moduleA");
export default {
    data(){
        return{

        }
    },
    methods:{
        ...mapActions(['jia'])
    },
    computed:{
        ...mapState(['count'])
    }
};
</script>

<style scoped>
</style>